package com.vkserver.services.utils;


import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 *@author roman.prudkogliad@gmail.com
 */
@XmlRootElement
public class User implements Serializable{

    private static final long serialVersionUID = 1L;

    private long userId;
    private int sex;
    private String FIO;


    public User(){
    }

    public User(long userId, int sex, String FIO){
        this.userId = userId;
        this.sex = sex;
        this.FIO = FIO;
    }

    public void setUserId(long userId){
        this.userId = userId;
    }
    @XmlElement(name = "userId")
    public long getUserId(){
        return userId;
    }

    public void setSex(int sex){
        this.sex = sex;
    }
    @XmlElement(name = "sex")
    public int getSex(){
        return sex;
    }

    public void setFIO(String FIO){
        this.FIO = FIO;
    }
    @XmlElement(name = "FIO")
    public String getFIO(){
        return FIO;
    }

    public String toString(){
        return "userId=" + userId + " sex=" + sex + " FIO=" + FIO;
    }
}
